原题链接在这里:https://leetcode.com/problems/missing-element-in-sorted-array/ 题目: Given a sorted array A ...
原题链接在这里:https://leetcode.com/problems/missing-element-in-sorted-array/ 题目: Given a sorted array A ...
题目: An image is represented by a binary matrix with 0 as a white pixel and 1 as a black pixel. The ...
Given an integer array arr, remove a subarray (can be empty) from arr such that the remaining elemen ...
You are given a string containing only 4 kinds of characters 'Q', 'W', 'E' and 'R'. A string is sai ...
原题链接在这里:https://leetcode.com/problems/minimize-max-distance-to-gas-station/description/ 题目: On a h ...
如题,谷歌两轮背靠背电面。两轮都是废话不多说直奔coding,虽然第一轮的中国大哥还是花了一点点时间了解了一下我的背景、毕业时间、research方向。说好的research面呢? 中国大哥出的题: ...
Binary Search基础 应用于已排序的数据查找其中特定值,是折半查找最常的应用场景。相比线性查找(Linear Search),其时间复杂度减少到O(lgn)。算法基本框架如下: ...
原题链接在这里:https://leetcode.com/problems/koko-eating-bananas/ 题目: Koko loves to eat bananas. There a ...
题目: Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in t ...
In universe Earth C-137, Rick discovered a special form of magnetic force between two balls if they ...